import router from './router'

router.beforeEach((to, from, next) => {
    if (to.name) {
        next()
    } else {
        next({ path: '/404' })
    }
})